<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:f="http://xmlns.jcp.org/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                template="/WEB-INF/template.xhtml">

    <ui:define name="title">
        Link Button
    </ui:define>

    <ui:define name="description">
        LinkButton is a link element that is rendered as a button and used as a navigation component based on GET requests targeting bookmarkable URLs.
    </ui:define>

    <ui:param name="documentationLink" value="/components/linkbutton"/>
    <ui:param name="widgetLink" value="LinkButton"/>

    <ui:define name="implementation">
        <div class="card">
            <p:linkButton outcome="productDetail" value="Bookmark" style="margin-right:20px;">
                <f:param name="productId" value="10"/>
            </p:linkButton>

            <p:linkButton outcome="productDetail" value="Bookmark new tab" style="margin-right:20px;" target="_blank">
                <f:param name="productId" value="10"/>
            </p:linkButton>

            <p:linkButton outcome="productDetail" value="With Icon" icon="pi pi-star" style="margin-right:20px;">
                <f:param name="productId" value="20"/>
            </p:linkButton>

            <p:linkButton outcome="productDetail" icon="pi pi-star" style="margin-right:20px;" title="Icon Only">
                <f:param name="productId" value="30"/>
            </p:linkButton>

            <p:linkButton outcome="productDetail" value="With Icon" disabled="true" style="margin-right:20px;">
                <f:param name="productId" value="40"/>
            </p:linkButton>

            <p:linkButton outcome="productDetail" value="Bookmark" icon="pi pi-star" disabled="true"
                          style="margin-right:20px;">
                <f:param name="productId" value="50"/>
            </p:linkButton>

            <p:linkButton outcome="productDetail" icon="pi pi-star" style="margin-right:20px;" disabled="true"
                          title="Icon Only">
                <f:param name="productId" value="60"/>
            </p:linkButton>
        </div>
    </ui:define>

</ui:composition>
